package day30;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Label;
import java.awt.Color;
import java.awt.Panel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ex2 extends JPanel {
	public JTextField ID;
	public JTextField Name;
	public JTextField Birthday;
	public JTextField Address;

	/**
	 * Create the panel.
	 */
	public ex2() {
		setLayout(new BorderLayout(0, 0));
		
		Panel panel = new Panel();
		add(panel, BorderLayout.CENTER);
		panel.setLayout(null);
		
		ID = new JTextField();
		ID.setText("");
		ID.setBounds(160, 21, 116, 21);
		panel.add(ID);
		ID.setColumns(10);
		
		Name = new JTextField();
		Name.setBounds(160, 65, 116, 21);
		panel.add(Name);
		Name.setColumns(10);
		
		Birthday = new JTextField();
		Birthday.setBounds(160, 124, 116, 21);
		panel.add(Birthday);
		Birthday.setColumns(10);
		
		Address = new JTextField();
		Address.setBounds(160, 168, 116, 21);
		panel.add(Address);
		Address.setColumns(10);
		
		JLabel lblId = new JLabel("Id :");
		lblId.setBounds(43, 24, 57, 15);
		panel.add(lblId);
		
		JLabel lblNewLabel = new JLabel("Name :");
		lblNewLabel.setBounds(43, 68, 57, 15);
		panel.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("birthday :");
		lblNewLabel_1.setBounds(43, 127, 57, 15);
		panel.add(lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel("Address");
		lblNewLabel_2.setBounds(43, 171, 57, 15);
		panel.add(lblNewLabel_2);

	}
}
